/**
 * Created by zhangxin on 2018/6/28.
 */
import MYCONF from '../myconf'
export default {
  state: {
    in_type:MYCONF.INFRAST_TYPE,
    isPopShow:false,  //城市一张图类型下拉框显示状态
    isTwoPop:false,//二级菜单显示状态
  },
  getters: {
    in_type:state => state.in_type,
    isPopShow: state => state.isPopShow,
    isTwoPop: state => state.isTwoPop,
  },
  mutations: {
    updateInType(state, payload) {
      state.in_type = Object.assign({},state.in_type,payload);
    },
    updateIsPopShow(state, payload) {
      state.isPopShow = payload;
    },
    updateIsTwoPop(state, payload) {
      state.isTwoPop = payload;
    },
  },

}
